<div class="users view">
<h2><?php  echo __('User');?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($user['User']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Username'); ?></dt>
		<dd>
			<?php echo h($user['User']['username']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Fullname'); ?></dt>
		<dd>
			<?php echo h($user['User']['fullname']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Password'); ?></dt>
		<dd>
			<?php echo h($user['User']['password']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Role'); ?></dt>
		<dd>
			<?php echo h($user['User']['role']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Position'); ?></dt>
		<dd>
			<?php echo h($user['User']['position']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Active'); ?></dt>
		<dd>
			<?php echo h($user['User']['active']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Created'); ?></dt>
		<dd>
			<?php echo h($user['User']['created']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Modified'); ?></dt>
		<dd>
			<?php echo h($user['User']['modified']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit User'), array('action' => 'edit', $user['User']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete User'), array('action' => 'delete', $user['User']['id']), null, __('Are you sure you want to delete # %s?', $user['User']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Users'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Fishers'), array('controller' => 'fishers', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Fisher'), array('controller' => 'fishers', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Mayors'), array('controller' => 'mayors', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Mayor'), array('controller' => 'mayors', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Specials'), array('controller' => 'specials', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Special'), array('controller' => 'specials', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Fishers');?></h3>
	<?php if (!empty($user['Fisher'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Full Name'); ?></th>
		<th><?php echo __('Address'); ?></th>
		<th><?php echo __('Description'); ?></th>
		<th><?php echo __('Expiry'); ?></th>
		<th><?php echo __('Status'); ?></th>
		<th><?php echo __('Signatory'); ?></th>
		<th><?php echo __('Or Num'); ?></th>
		<th><?php echo __('Amount'); ?></th>
		<th><?php echo __('Date Paid'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($user['Fisher'] as $fisher): ?>
		<tr>
			<td><?php echo $fisher['id'];?></td>
			<td><?php echo $fisher['user_id'];?></td>
			<td><?php echo $fisher['full_name'];?></td>
			<td><?php echo $fisher['address'];?></td>
			<td><?php echo $fisher['description'];?></td>
			<td><?php echo $fisher['expiry'];?></td>
			<td><?php echo $fisher['status'];?></td>
			<td><?php echo $fisher['signatory'];?></td>
			<td><?php echo $fisher['or_num'];?></td>
			<td><?php echo $fisher['amount'];?></td>
			<td><?php echo $fisher['date_paid'];?></td>
			<td><?php echo $fisher['created'];?></td>
			<td><?php echo $fisher['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'fishers', 'action' => 'view', $fisher['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'fishers', 'action' => 'edit', $fisher['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'fishers', 'action' => 'delete', $fisher['id']), null, __('Are you sure you want to delete # %s?', $fisher['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Fisher'), array('controller' => 'fishers', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Mayors');?></h3>
	<?php if (!empty($user['Mayor'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Client'); ?></th>
		<th><?php echo __('Event'); ?></th>
		<th><?php echo __('Duration'); ?></th>
		<th><?php echo __('Venue'); ?></th>
		<th><?php echo __('Purpose'); ?></th>
		<th><?php echo __('Client Position'); ?></th>
		<th><?php echo __('Organizer'); ?></th>
		<th><?php echo __('Brgy Captain'); ?></th>
		<th><?php echo __('Police Chief'); ?></th>
		<th><?php echo __('Or Num'); ?></th>
		<th><?php echo __('Date Paid'); ?></th>
		<th><?php echo __('Amount'); ?></th>
		<th><?php echo __('Signatory'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($user['Mayor'] as $mayor): ?>
		<tr>
			<td><?php echo $mayor['id'];?></td>
			<td><?php echo $mayor['user_id'];?></td>
			<td><?php echo $mayor['client'];?></td>
			<td><?php echo $mayor['event'];?></td>
			<td><?php echo $mayor['duration'];?></td>
			<td><?php echo $mayor['venue'];?></td>
			<td><?php echo $mayor['purpose'];?></td>
			<td><?php echo $mayor['client_position'];?></td>
			<td><?php echo $mayor['organizer'];?></td>
			<td><?php echo $mayor['brgy_captain'];?></td>
			<td><?php echo $mayor['police_chief'];?></td>
			<td><?php echo $mayor['or_num'];?></td>
			<td><?php echo $mayor['date_paid'];?></td>
			<td><?php echo $mayor['amount'];?></td>
			<td><?php echo $mayor['signatory'];?></td>
			<td><?php echo $mayor['created'];?></td>
			<td><?php echo $mayor['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'mayors', 'action' => 'view', $mayor['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'mayors', 'action' => 'edit', $mayor['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'mayors', 'action' => 'delete', $mayor['id']), null, __('Are you sure you want to delete # %s?', $mayor['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Mayor'), array('controller' => 'mayors', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Specials');?></h3>
	<?php if (!empty($user['Special'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Client'); ?></th>
		<th><?php echo __('Address'); ?></th>
		<th><?php echo __('Buss Name'); ?></th>
		<th><?php echo __('Buss Address'); ?></th>
		<th><?php echo __('Event'); ?></th>
		<th><?php echo __('Duration'); ?></th>
		<th><?php echo __('Purpose'); ?></th>
		<th><?php echo __('Venue'); ?></th>
		<th><?php echo __('Signatory'); ?></th>
		<th><?php echo __('Or Num'); ?></th>
		<th><?php echo __('Date Paid'); ?></th>
		<th><?php echo __('Amount'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($user['Special'] as $special): ?>
		<tr>
			<td><?php echo $special['id'];?></td>
			<td><?php echo $special['user_id'];?></td>
			<td><?php echo $special['client'];?></td>
			<td><?php echo $special['address'];?></td>
			<td><?php echo $special['buss_name'];?></td>
			<td><?php echo $special['buss_address'];?></td>
			<td><?php echo $special['event'];?></td>
			<td><?php echo $special['duration'];?></td>
			<td><?php echo $special['purpose'];?></td>
			<td><?php echo $special['venue'];?></td>
			<td><?php echo $special['signatory'];?></td>
			<td><?php echo $special['or_num'];?></td>
			<td><?php echo $special['date_paid'];?></td>
			<td><?php echo $special['amount'];?></td>
			<td><?php echo $special['created'];?></td>
			<td><?php echo $special['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'specials', 'action' => 'view', $special['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'specials', 'action' => 'edit', $special['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'specials', 'action' => 'delete', $special['id']), null, __('Are you sure you want to delete # %s?', $special['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Special'), array('controller' => 'specials', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
